var t = getApp();

Page({
    data: {
        courseList: []
    },
    onLoad: function(t) {
        this._getData();
    },
    _getData: function(e) {
        var n = this;
        t._getNetWork({
            url: t.getNetAddresss("plugin.video-demand.api.video-demand-member.get-me-course"),
            success: function(t) {
                if (1 == t.data.result) {
                    var o = t.data.data;
                    n.setData({
                        courseList: o
                    }), e && e(t);
                } else console.error(t);
            },
            fail: function(t) {
                console.error(t);
            }
        });
    },
    toCourse: function(t) {
        var e = t.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageA/detail_v2/detail_v2?id=" + e
        });
    },
    onReady: function() {
        wx.setNavigationBarTitle({
            title: "我的课程"
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});